package com.example.springtransactional.dao;

import com.example.springtransactional.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @auther:lgb
 * @Date: 2021/4/24
 */
@Mapper
public interface InsertDataDao {
    @Insert("insert into `user`(id, `name`, age) values (#{id}, #{name}, #{age})")
    void insertData(User user);
}
